<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>德州扑克标准版</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
	<!--
	body {
	 margin-left: 0px;
	 margin-top: 0px;
	 margin-right: 0px;
	 margin-bottom: 0px;
	}
	-->
	</style>
	<script type="text/javascript">
	function register() {
		document.register.action ="register.pk";
		document.register.submit();
	}
	function chongzhi() {
		document.register.action ="admin.pk";
		document.register.submit();
	}
	
	function  window.onunload(){ 
		// var x = TaskPk.exitFlexFunction();
		//thisMovie("TaskPk").javaScript("123");
		//thisMovie("TaskPk").exitFlexFunction();
		var form = document.exitGame;
		form.submit();
	}   
    // function window.onbeforeunload(){alert("这就是你要做的事,关闭网页之前做的！");}  
     
    function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
       }
	}
    function logonGameByFlex(param) {
    	var form = document.exitGame;
    	form.userName.value = param.userName;
    }
	</script>
  </head>
  
  <body >

  	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="TaskPk" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="<%=basePath%>debug/TaskPk.swf" />
			<param name="quality" value="high" />
			<param name="bgcolor" value="#869ca7" />
			<param name="allowScriptAccess" value="sameDomain" />
			<embed src="<%=basePath%>debug/TaskPk.swf" quality="high" bgcolor="#869ca7"
				width="100%" height="100%" name="TaskPk" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
	<form name="register" method="post" action="register.pk">
	</form>
	
	<form name="exitGame" method="post" action="exitGame.pk">
		<input type="hidden" name="userName">
	</form>
  </body>
	
</html>
